# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=mysql2sqlite
pkgver=14.e5b2c31
pkgrel=2
epoch=1
groups=('blackarch' 'blackarch-database' 'blackarch-misc')
pkgdesc='Converts a mysqldump file into a Sqlite 3 compatible file.'
arch=('any')
url='https://gist.github.com/esperlu/943776'
license=('custom:unknown')
depends=('mariadb-clients' 'sqlite')
makedepends=('git')
source=("git+https://github.com/paraxor/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
}

